package kgc.crm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import kgc.crm.model.Role;
import kgc.crm.vo.RoleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {
    //@Param 对应mapper里面的#{}
    public List<Role> selectListByRoleId(@Param("pageIndex") Integer pageIndex,
                                         @Param("pageSize") Integer pageSize,
                                         @Param("roleId") Integer roleId);
    //分页查询
    public Integer selectListByRoleIdCount(@Param("roleId") Integer roleId);
}